module HtmlEngine
  def self.transform(text)
    return "" if text.to_s.empty?
    rc = RedCloth.new(text, [:hard_breaks])
    rc.to_html(:textile)
  end
end